package com.qf.springcloud.item.mq;

import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Component;

@Component
public class MyStreamListener {

    @StreamListener("zheshiwomendemubiaojiaohuanji")
    public void onMessage(String msg){
        System.err.println("收到的消息是========>:" + msg);
    }
}
